﻿@model SoftHotel.Models.Trabajador

@{
    ViewBag.Title = "Trabajadores: Modificar trabajador";
}

<h2>Modificar trabajador</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Trabajador</legend>

        @Html.HiddenFor(model => model.idTrabajador)

        <div class="editor-label">
            @Html.LabelFor(model => model.sede)
        </div>
        <div class="editor-field">
            @Html.DropDownList("idSede", String.Empty)
            @Html.ValidationMessageFor(model => model.idSede)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pEstadoCivil)
        </div>
        <div class="editor-field">
            @Html.DropDownList("estadoCivil", String.Empty)
            @Html.ValidationMessageFor(model => model.estadoCivil)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pSexo)
        </div>
        <div class="editor-field">
            @Html.DropDownList("sexo", String.Empty)
            @Html.ValidationMessageFor(model => model.sexo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pDepartamento)
        </div>
        <div class="editor-field">
            @Html.DropDownList("departamento", String.Empty)
            @Html.ValidationMessageFor(model => model.departamento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pProvincia)
        </div>
        <div class="editor-field">
            @Html.DropDownList("provincia", String.Empty)
            @Html.ValidationMessageFor(model => model.provincia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pCargo)
        </div>
        <div class="editor-field">
            @Html.DropDownList("cargo", String.Empty)
            @Html.ValidationMessageFor(model => model.cargo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pEstado)
        </div>
        <div class="editor-field">
            @Html.DropDownList("estado", String.Empty)
            @Html.ValidationMessageFor(model => model.estado)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pTipoDoc)
        </div>
        <div class="editor-field">
            @Html.DropDownList("tipoDoc", String.Empty)
            @Html.ValidationMessageFor(model => model.tipoDoc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.numDoc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.numDoc)
            @Html.ValidationMessageFor(model => model.numDoc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nombres)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nombres)
            @Html.ValidationMessageFor(model => model.nombres)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.apellidoPaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.apellidoPaterno)
            @Html.ValidationMessageFor(model => model.apellidoPaterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.apellidoMaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.apellidoMaterno)
            @Html.ValidationMessageFor(model => model.apellidoMaterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fechaNacimiento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fechaNacimiento)
            @Html.ValidationMessageFor(model => model.fechaNacimiento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.telefono)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.telefono)
            @Html.ValidationMessageFor(model => model.telefono)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.movil)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.movil)
            @Html.ValidationMessageFor(model => model.movil)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.direccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.direccion)
            @Html.ValidationMessageFor(model => model.direccion)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<p>
    @Html.ActionLink("Regresar", "SearchIndex")
</p>